package cn.llssit.project.wechatapi.controller;

import cn.llssit.project.wechatapi.domain.VideoHell;
import cn.llssit.project.wechatapi.mapper.VideoHellMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: Lesan
 * @Date: 2020-06-07
 */
@Controller
@RequestMapping("/wechatapi")
public class VideoHellController {
    @Autowired
    private VideoHellMapper videoHellMapper;

    @GetMapping("/getvideohellbyid")
    @ResponseBody
    public VideoHell getvideohellbyid(Integer id){
        return videoHellMapper.selectById(id);
    }

}
